<#include "/layout/layout.ftl">
<#import "/layout/macro.ftl" as macro>
<#import "/layout/select.ftl" as my/>
<#assign css>
<#--此ftl中用到的css-->
    <style>
        .col-sm-9{
            padding-top:7px;
        }
    </style>
</#assign>
<#assign js>
<#--此ftl中用到的js-->
<script>
</script>
</#assign>
<@layout title="详情" active="partner">
<!-- Content Header (Page header) -->
<section class="content-header">
	<h1>
		<small>商家详细信息</small>
	</h1>
	<ol class="breadcrumb">
		<li><a href="/"><i class="fa fa-home"></i> 管理后台</a></li>
		<li><a href="/partner/index"><i class="fa fa-list-ul"></i> 合作商家管理</a></li>
		<li class="active"><i class="fa fa-edit"></i>详细信息</li>
	</ol>
</section>
<!-- Main content -->
<section class="content">
	<div class="row">
		<div class="col-md-12">
			<!-- Default box -->
			<div class="box  box-primary">
				<form class="form-horizontal form-edit" method="post" action="">
					<div class="box-body">
						<input type="hidden" id="id" name="id" value="${user.id!}">
						<div class="form-group"><label class="col-sm-3 control-label">主键：</label><div class="col-sm-9">${user.id!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">合作商家名称：</label><div class="col-sm-9">${user.partnerName!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">合作商家地址：</label><div class="col-sm-9">${user.partnerAddress!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">合作商家电话：</label><div class="col-sm-9">${user.partnerPhone!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">申请状态：</label><div class="col-sm-9">
                                <#if user.partnerStatus == 0>
                                    未申请
                                <#elseif user.partnerStatus == 1>
                                    申请中
                                <#elseif user.partnerStatus == 2>
                                    已同意
                                <#else >
                                    已拒绝
                                </#if>
                            </div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">地址纬度：</label><div class="col-sm-9">${user.partnerLatitude!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">地址经度：</label><div class="col-sm-9">${user.partnerLongitude!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">合作商家文案：</label><div class="col-sm-9">${user.partnerRemark!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">合作商家头像：</label><div class="col-sm-9">
                                <img src="${user.partnerAvatar!}" style="width: 200px;height: 200px">
                            </div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">同意合作商家：</label><div class="col-sm-9">${convert('IS_NOT', user.isPartner)!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">单笔基础费用：</label><div class="col-sm-9">${user.partnerAmount!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">抽成比例（%）：</label><div class="col-sm-9">${user.partnerScale!}</div></div>
                        <div class="form-group"><label class="col-sm-3 control-label">合作商家协议：</label><div class="col-sm-9">${user.partnerProtocol!}</div></div>
					</div>

					<div class="box-footer">
						<button type="button" class="btn btn-default btn-back">返回</button>
					</div>

				</form>
			</div>
			<!-- /.box -->
		</div>
	</div>
</section>
<!-- /.content -->
</@layout>
